package com.thirdDay;

public class Demo10 {
    public static void main(String[] args) {

        // 1. 创建对象
        StringBuilder builder = new StringBuilder();

        builder.append("aaa");
        builder.append("bbb");
        builder.append("ccc");
        builder.append("ddd");
        System.out.println(builder);

        // 3. 再把StringBuilder变回字符串
        String data = builder.toString();
        System.out.println(data);

    }
}
